package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.BusinessCertificateHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/businessCertificate", r.somsHandler.ListBusinessCertificate())
	group.GET("/businessCertificate/:id", r.somsHandler.GetBusinessCertificate())
	group.PUT("/businessCertificate", r.somsHandler.AddBusinessCertificate())
	group.POST("/businessCertificate/:id", r.somsHandler.EditBusinessCertificate())
	group.DELETE("/businessCertificate/:id", r.somsHandler.DeleteBusinessCertificate())
	group.POST("/batchDeleteBusinessCertificate", r.somsHandler.BatchDeleteBusinessCertificate())
}